<script>
	export default {
		onLaunch() {
			this.globalData.$t = val => {
				return this.$t(val);
			};
			uni.getSystemInfo({
				success:(res)=>{
					// this.$i18n.locale = res.language;
					this.$store.state.Language = res.language;
				}
			});
			 uni.setNavigationBarColor({
			        fontColor: '#fff',
			        backgroundColor: '#ff0000'
			    })
			// console.log(uni.getSystemInfoSync())
			this.$store.state.windowHeights = uni.getSystemInfoSync().windowHeight;
			this.$store.state.windowWidths = uni.getSystemInfoSync().windowWidth;
			this.$store.state.topheights = uni.getSystemInfoSync().statusBarHeight + 44;
			this.$store.state.bodyHeights = this.$store.state.windowHeights - this.$store.state.topheights;
			this.$store.state.statusBarHeight = uni.getSystemInfoSync().statusBarHeight;
		},
		onShow: function() {
			console.log(this.$store.state)
		},
		onHide: function() {
			
		}
	}
</script>

<style lang="scss">
	/*每个页面公共css */
	@import "@/uni_modules/uview-ui/index.scss";
	@import "common/demo.scss";
	
</style>
